/**
 * 系统用户修改js
 */
var comValidform=null;
var returnStatus=false;
var sysUserImport={
	dataCache:null,
	duties:null,
	
	startEvent:function(){
		//更改职务提交
		comValidform=$(".com-importForm").Validform({
			tiptype:2,
			tipSweep:true,
			beforeSubmit:function(curform){
				 
				var url = 'mgr/SysUserCtrl/upload';
				 
				var data = new FormData($('#importForm')[0]);
				alert("222");
				$.ajax({  
				      url: '../../mgr/SysUserCtrl/upload',  
				      type: 'POST',  
				      data: data,  
				      dataType: 'JSON',  
				      cache: false,  
				      processData: false,  
				      contentType: false, 
				      success:function(data){  
				    	  alert("UploadFile Success");
				      }   
				  });  
				 
			}
		});
	},
	 
	init:function(){
		sysUserImport.startEvent();
	}
}
$(document).ready(function() {
	sysUserImport.init();
});
function submitForm(){
	comValidform.submitForm();
	return returnStatus;
}